From 42fd5a0b8b98cc76fe5c378abc95eb2eb8661f56 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 27 Dec 2016 18:36:19 -0500 Subject: [PATCH] Stop exporting gtk_parse_args We want to stop handling commandline arguments, and that is the sole purpose of this function. So it has to go --- gtk/gtkmain.c | 24 +----------------------- gtk/gtkmain.h | 4 ---- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 97f0144b98..49813944ba 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -902,29 +902,7 @@ gtk_get_option_group (gboolean open_default_display) return group; } -/** - * gtk_parse_args: - * @argc: (inout): a pointer to the number of command line arguments - * @argv: (array length=argc) (inout): a pointer to the array of - * command line arguments - * - * Parses command line arguments, and initializes global - * attributes of GTK+, but does not actually open a connection - * to a display. (See gdk_display_open(), gdk_get_display_arg_name()) - * - * Any arguments used by GTK+ or GDK are removed from the array and - * @argc and @argv are updated accordingly. - * - * There is no need to call this function explicitly if you are using - * gtk_init(), or gtk_init_check(). - * - * Note that many aspects of GTK+ require a display connection to - * function, so this way of initializing GTK+ is really only useful - * for specialized use cases. - * - * Returns: %TRUE if initialization succeeded, otherwise %FALSE - */ -gboolean +static gboolean gtk_parse_args (int *argc, char ***argv) { diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h index 4754395169..79398b2a2b 100644 --- a/gtk/gtkmain.h +++ b/gtk/gtkmain.h @@ -72,10 +72,6 @@ const gchar* gtk_check_version (guint required_major, /* Initialization, exit, mainloop and miscellaneous routines */ -GDK_AVAILABLE_IN_ALL -gboolean gtk_parse_args (int *argc, - char ***argv); - GDK_AVAILABLE_IN_ALL void gtk_init (int *argc, char ***argv); -- 2.30.2